<?php

namespace App\Validate\Admin;

use App\Http\Request;

class Login extends Request
{
    /**
     * 验证规则
     */
    protected $rule = [
        'username' => 'required',
        'password' => 'required',
        '__token__' => 'required',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'username.required' => '请输入用户名',
        'password.required' => '请输入密码',
        '__token__.required' => '请选择商品分类',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'login' => ['username', 'password'],
    ];
}
